package com.cloud.mall.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.mall.test.entity.AccountTbl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AccountTblMapper extends BaseMapper<AccountTbl> {

    /**
     * 从用户账户中借出
     */
    void debit(@Param("userId") String userId, @Param("money") int money);
}